/*
 * @Descripttion: 考试表
 * @version: 
 * @Author: ada.wu
 * @Date: 2024-03-11 11:06:00
 * @LastEditors: ada.wu
 * @LastEditTime: 2024-04-10 20:03:07
 */
import service from "/@/util/service";
import { AxiosPromise } from "axios";

const exhibitionQuesApi = '/exhibition/openapi/nol/api/exhibition/questionnaire'
// const exhibitionQuesApi = '/exhibition/nol/api/exhibition/questionnaire'


// /openapi/nol/api/exhibition/questionnaire/activityList/report
// /openapi/nol/api/exhibition/questionnaire/personList/report



/**
 * 活动列表
 * @param param
 * @return {AxiosPromise}
 */
export function reportActivityList(param: any) {
    return service.post(`${exhibitionQuesApi}/activityList/report`, param)
}
/**
 * 活动列表
 * @param param
 * @return {AxiosPromise}
 */
export function reportPersonList(param: any) {
    return service.post(`${exhibitionQuesApi}/personList/report`, param)
}
/**
 * 活动列表
 * @param param
 * @return {AxiosPromise}
 */
export function activityList(param: any) {
    return service.post(`${exhibitionQuesApi}/activityList`, param)
}
/**
 * 人员列表
 * @param param
 * @return {AxiosPromise}
 */
export function personList(param: any) {
    return service.post(`${exhibitionQuesApi}/personList`, param)
}
/**
 * 试卷列表
 * @param param
 * @return {AxiosPromise}
 */
export function examList(param: any) {
    return service.post(`${exhibitionQuesApi}/examList`, param)
}

/**
 * 试卷详情
 * @param param
 * @return {AxiosPromise}
 */
export function examDetail(param: any) {
    return service.get(`${exhibitionQuesApi}/examDetail/${param.examId}`, param)
}
/**
 * 试卷回答
 * @param param
 * @return {AxiosPromise}
 */
export function answerExam(param: any) {
    return service.post(`${exhibitionQuesApi}/answerExam`, param)
}
/**
 * 试卷回答详情
 * @param param
 * @return {AxiosPromise}
 */
export function examAnswerDetail(param: any) {
    return service.post(`${exhibitionQuesApi}/examAnswerDetail`, param)
}
/**
 * 活动详情
 * @param param
 * @return {AxiosPromise}
 */
export function activityDetail(param: any) {
    // console.log('ACTIVITY_ID==',param)
    return service.get(`${exhibitionQuesApi}/activityDetail/${param.activityId}`, param)
}
/**
 * 查询评价者是否存在权限
 * @param param
 * @return {AxiosPromise}
 */
export function checkAuth(param: any) {
    return service.get(`${exhibitionQuesApi}/checkAuth/${param.valuatorUserId}`, param)
}

/**
 * 活动报表-移动端
 * @param param 
 * @returns 
 */
export function activityReportMobile(param: any) {
    return service.post(`${exhibitionQuesApi}/activityReportMobile`, param)
}
/**
 * 人员报表-移动端
 * @param param 
 * @returns 
 */
export function personReportMobile(param: any) {
    return service.post(`${exhibitionQuesApi}/personReportMobile`, param)
}

/**
 * 用户问卷详情信息查询 开放接口
 * @param param 
 * @returns 
 */
export function userAnswerQuestionnaireInfo(param: any) {
    return service.post(`/exhibition/openapi/nol/api/exhibition/questionnaire/userAnswerQuestionnaireInfo`, param)
}
/**
 * 用户问卷详情信息查询 开放接口
 * @param param 
 * @returns 
 */
export function userAnswerQuestionnaire(param: any) {
    return service.post(`/exhibition/openapi/nol/api/exhibition/questionnaire/userAnswerQuestionnaire`, param)
}
/**
 * 用户问卷详情信息查询 开放接口
 * @param param 
 * @returns 
 */
export function answerResult(param: any) {
    return service.post(`/exhibition/openapi/nol/api/exhibition/questionnaire/answerResult`, param)
}


// 

